package biblio.metier;

import java.util.Date;

public class EmpruntArchive{

	private Date		dateEmprunt;
	private Date		dateRestitutionEff;
	private Utilisateur	user;
	private Exemplaire	book;
	
	
	public EmpruntArchive(EmpruntEnCours unEmpruntEnCours, Date uneDateRestitutionEff)
	{
		dateEmprunt = unEmpruntEnCours.getDateEmprunt();
		user = unEmpruntEnCours.getUser();
		book = unEmpruntEnCours.getBook();
		dateRestitutionEff = uneDateRestitutionEff;
	}
	
	
	public Date getDateEmprunt()
	{	return dateEmprunt;	}
	
	public Utilisateur getUser()
	{	return user;	}
	
	public Exemplaire getBook()
	{	return book;	}

	public Date getDateRestitutionEff()
	{	return dateRestitutionEff;	}

	public void setDateEmprunt(Date dateEmprunt)
	{	this.dateEmprunt = dateEmprunt;	}
	
	public void setUser(Utilisateur user)
	{	this.user = user;	}

	public void setBook(Exemplaire book)
	{	this.book = book;	}
	
	public void setDateRestitutionEff(Date dateRestitutionEff)
	{	this.dateRestitutionEff = dateRestitutionEff;	}


	@Override
	public String toString()
	{
		return "EmpruntArchive [dateEmprunt=" + dateEmprunt
				+ ", dateRestitutionEff=" + dateRestitutionEff + ", user="
				+ user + ", book=" + book + "]";
	}
	
	
	
}
